﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DataPager.ascx.cs" Inherits="UserControl_DataPager" %>

<div style="text-align: right;">
    
    <asp:Button ID="cmdFirstPage" CssClass="wsd_button2" CausesValidation="false" runat="server" CommandName="Page" CommandArgument="First"
        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" Text="首页" />
    <asp:Button CausesValidation="false"  CssClass="wsd_button2" ID="cmdPreview" runat="server" CommandArgument="Prev" CommandName="Page"
        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" Text="前页"/>
    第<asp:Label ID="lblcurPage" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1      %>'></asp:Label>页/共<asp:Label
        ID="lblPageCount" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount %>' />页
    <asp:Button CausesValidation="false" CssClass="wsd_button2"  ID="cmdNext" runat="server" CommandName="Page" CommandArgument="Next"
        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>" Text="后页"/>
    <asp:Button CausesValidation="false"  CssClass="wsd_button2"  ID="cmdLastPage" runat="server" CommandArgument="Last" CommandName="Page"
        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>" Text="尾页"/>
    转<asp:TextBox ID="txtGoPage" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>'
        Width="32px" CssClass="inputmini"></asp:TextBox>页
        <input type=button ID="Button1"   Class="wsd_button2" CausesValidation="false" runat="server" 
           
            value="Go" />
         
</div>
 <%--OnClientClick='<%# "javascript:doPostBack(" + Button1.UniqueID + "," +txtGoPage.UniqueID + ")" %>'
        --%>
